package demo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DataUtil {
	/** 
     * 检索资源数据的准备； 
     *   这里的数据可以来源数据库、文件系统等 
     * @return 
     */  
    public static List<User> getUsers(){  
        List<User> list =new ArrayList<User>();  
        User user =new User(1,"张三1",21,"man",new Date());  
        list.add(user);  
        user =new User(2,"张三2",22,"man",new Date());  
        list.add(user);  
        user =new User(3,"张三3",23,"woman",new Date());  
        list.add(user);  
        user =new User(4,"张三4",24,"man",new Date());  
        list.add(user);  
        user =new User(5,"张三5",25,"man",new Date());  
        list.add(user);  
        user =new User(6,"张三6",26,"woman",new Date());  
        list.add(user);  
        return list;  
    }  
}
